#include "log.h"

int logSet(char *msg){
    openlog("logSet", LOG_CONS | LOG_PID, 0);
    time_t nowTime;
    time(&nowTime);
    syslog(LOG_INFO, "%s%d %s\n", ctime(&nowTime), getpid(), msg);
    closelog();
    return 0;
}
